package com.system.queue.feign;

import com.system.queue.domain.ConsultationRoom;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @className: ConsultationRoomServiceFeign
 * @description: TODO 类描述
 * @author: Kuangkeli
 * @date: 2023/11/30 20:29
 **/
@FeignClient(value = "consultationRoom-service", path = "/consultationRoom")
public interface ConsultationRoomServiceFeign {

    @PostMapping("/save")
     boolean saveHandle(@RequestBody ConsultationRoom consultationRoom);

    @DeleteMapping("/del/{id}")
    boolean deleteHandle(@PathVariable("id") int id);


    @PutMapping("/update")
    boolean updateHandle(@RequestBody ConsultationRoom consultationRoom);

    @GetMapping("/get/{id}")
    ConsultationRoom getHandle(@PathVariable("id") int id);

    @GetMapping("/get/list")
     List<ConsultationRoom> listHandle();
}
